package com.sc.nft.admin.controller;

import com.sc.nft.service.UserEquityPropsLogService;
import com.sc.nft.sup.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/admin/props/revise")
@Api(tags = "")
public class PropsReviseController {

    private final UserEquityPropsLogService userEquityPropsLogService;

    @ApiOperation(value = "道具日志表增加道具ID", notes = "道具日志表增加道具ID", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_VALUE)
    @PostMapping(value = "/fixData", produces = MediaType.APPLICATION_JSON_VALUE)
    public Result fixData() throws Exception {
        userEquityPropsLogService.fixData();
        return Result.success();
    }
}
